package com.jingdianjichi.auth.domain.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.jingdianjichi.auth.domain.entity.AuthUserBO;
import com.jingdianjichi.auth.infra.basic.service.AuthUserService;

import javax.annotation.Resource;

/**
 * 用户领域servic
 */
public interface AuthUserDomainService {
    /**
     * 用户注册
     * @param authUserBO
     * @return
     */
    Boolean register(AuthUserBO authUserBO);

    /**
     * 更新用户信息
     * @param authUserBO
     * @return
     */

    Boolean update(AuthUserBO authUserBO);

    /**
     * 删除用户
     * @param authUserBO
     * @return
     */
    Boolean delete(AuthUserBO authUserBO);

    /**
     * 用户登录
     * @param validCode
     * @return
     */
    SaTokenInfo dologin(String validCode);
}
